package com.nm.commons.exception;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * Created by hewu on 2016/6/19 0019.
 */
public class SupperException extends Exception {

    private Logger LOG = LoggerFactory.getLogger(SupperException.class);

    private int errCode;

    private String msg;

    public SupperException(Throwable cause) {
        super(cause);
    }

    public SupperException(int errCode, String msg) {
        super();
        this.errCode = errCode;
        this.msg = msg;
    }

    public SupperException(int errCode, String msg, Throwable cause) {
        super(msg, cause);
        this.errCode = errCode;
        this.msg = msg;
    }


    ///////////////////  get and set   /////////////////////
    public int getErrCode() {
        return errCode;
    }

    public void setErrCode(int errCode) {
        this.errCode = errCode;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
